{% extends 'social_base.html' %}
{% load static %}
{% block title %}
校内交友
{% endblock %}
{% block head %}
<style>
    body {
        font-family: 'Arial', sans-serif;
        margin: 0;
        padding: 0;
        background-color: #f5f5f5;
        background-image: url("{{ MEDIA_URL }}{{ user_profile.background_image }}");
        background-size: cover;
    }
</style>
{% endblock %}
{% block body %}
<div class="profile-container">

    <form method="get" action="{% url 'add_profile' username %}">
        {% csrf_token %}
        {{ user_search_form.as_p }}
        <button type="submit" class="btn btn-friend-manage btn-sm"
            style="font-size: 20px;background-color: #6ea8fe">查找</button>
    </form>

    {% for user_profile in queryset %}
    <p>用户名: {{ user_profile.user.username }}</p>
    <p>昵称: {{ user_profile.nickname }}</p>
    <p>个性签名: {{ user_profile.bio }}</p>
    <a href="{% url 'send_friend_request' user_profile.user.username username %}">添加好友</a>


    {% endfor %}
    {{ page_string }}
</div>
{% endblock %}